import {
  ActivityStatusEnum,
  ApproveStatusEnum,
  GroupApproveStatusEnum,
  PayStatusEnum,
  PromotionServiceApproveStatusEnum,
  PromotionServiceStatusEnum,
  ServiceApproveStatusEnum,
  ServiceStatusEnum,
  StatusEnum,
  WordApproveStatusEnum
} from '@/core/enums/status'

export const StatusKeyMap: Record<StatusEnum, string> = {
  [StatusEnum.ALL]: '全部',
  [StatusEnum.PENDING]: '待提单',
  [StatusEnum.SUCCEED]: '已提单'
}

export const StatusColor: Record<StatusEnum, string> = {
  [StatusEnum.ALL]: 'default',
  [StatusEnum.PENDING]: 'default',
  [StatusEnum.SUCCEED]: 'success'
}

export const ApproveStatusKeyMap: Record<ApproveStatusEnum, string> = {
  [ApproveStatusEnum.ALL]: '全部',
  [ApproveStatusEnum.PENDING]: '待审核',
  [ApproveStatusEnum.SUCCESS]: '审核通过',
  [ApproveStatusEnum.FAIL]: '审核拒绝',
  [ApproveStatusEnum.FOUR]: '修改建议'
}

export const ApproveStatusColor: Record<ApproveStatusEnum, string> = {
  [ApproveStatusEnum.ALL]: 'default',
  [ApproveStatusEnum.PENDING]: 'default',
  [ApproveStatusEnum.SUCCESS]: 'success',
  [ApproveStatusEnum.FAIL]: 'error'
}

export const ServiceApproveStatusKeyMap: Record<ServiceApproveStatusEnum, string> = {
  [ServiceApproveStatusEnum.Waiting]: '待审核',
  [ServiceApproveStatusEnum.All]: '全部',
  [ServiceApproveStatusEnum.Approval]: '审核通过',
  [ServiceApproveStatusEnum.Negate]: '审核不通过',
  [ServiceApproveStatusEnum.Enable]: '有效',
  [ServiceApproveStatusEnum.NormalPause]: '处于暂停时段',
  [ServiceApproveStatusEnum.PausePromotion]: '暂停推广',
  [ServiceApproveStatusEnum.PlanLowBudget]: '计划预算不足',
  [ServiceApproveStatusEnum.AccountLowBudget]: '账户预算不足'
}

export const PromotionServiceStatusKeyMap: Record<PromotionServiceStatusEnum, string> = {
  [PromotionServiceStatusEnum.All]: '待编辑创意',
  [PromotionServiceStatusEnum.Pause]: '暂停投放',
  [PromotionServiceStatusEnum.Launch]: '启用投放'
}

export const PromotionServiceApproveStatusKeyMap: Record<PromotionServiceApproveStatusEnum, string> = {
  [PromotionServiceApproveStatusEnum.All]: '待编辑创意',
  [PromotionServiceApproveStatusEnum.Enable]: '有效',
  [PromotionServiceApproveStatusEnum.Pause]: '暂停推广',
  [PromotionServiceApproveStatusEnum.Fail]: '审核不通过',
  [PromotionServiceApproveStatusEnum.Activate]: '待激活',
  [PromotionServiceApproveStatusEnum.Approval]: '审核中',
  [PromotionServiceApproveStatusEnum.Invalid]: '部分无效',
  [PromotionServiceApproveStatusEnum.UrlValid]: '有效-移动URL审核中',
  // 备注：部分无效：移动物料审核未通过，计算机物料审核通过
  [PromotionServiceApproveStatusEnum.Unreviewed]: '未审核'
}

export const PayStatusKeyMap: Record<PayStatusEnum, string> = {
  [PayStatusEnum.All]: '全部',
  [PayStatusEnum.Deducted]: '已扣款',
  [PayStatusEnum.Refund]: '退款'
}

export const ServiceStatusKeyMap = {
  [ServiceStatusEnum.PENDING]: '待审核',
  [ServiceStatusEnum.All]: '全部',
  [ServiceStatusEnum.Before_Launch]: '暂停投放',
  [ServiceStatusEnum.Launch]: '投放中',
  [ServiceStatusEnum.Launched]: '投放完毕',
  [ServiceStatusEnum.Offline]: '已下线'
}

export const ActivityStatusKeyMap: Record<ActivityStatusEnum, string> = {
  [ActivityStatusEnum.All]: '全部',
  [ActivityStatusEnum.Online]: '上线',
  [ActivityStatusEnum.Offline]: '下线'
}

export const ActivityStatusColor: Record<ActivityStatusEnum, string> = {
  [ActivityStatusEnum.All]: 'default',
  [ActivityStatusEnum.Online]: 'success',
  [ActivityStatusEnum.Offline]: 'error'
}

export const GroupApproveStatusKeyMap: Record<GroupApproveStatusEnum, string> = {
  [GroupApproveStatusEnum.Waiting]: '待编辑创意',
  [GroupApproveStatusEnum.All]: '全部',
  [GroupApproveStatusEnum.Normal]: '有效',
  [GroupApproveStatusEnum.Pause]: '暂停推广',
  [GroupApproveStatusEnum.PromotePause]: '推广计划暂停推广',
  [GroupApproveStatusEnum.Unreviewed]: '未审核'
}

export const WordApproveStatusKeyMap: Record<WordApproveStatusEnum, string> = {
  [WordApproveStatusEnum.Waiting]: '待编辑创意',
  [WordApproveStatusEnum.All]: '全部',
  [WordApproveStatusEnum.UrlValid]: '有效-移动url审核中',
  [WordApproveStatusEnum.Enable]: '有效',
  [WordApproveStatusEnum.Pause]: '暂停推广',
  [WordApproveStatusEnum.NotSuitable]: '不宜推广',
  [WordApproveStatusEnum.SearchLimited]: '展现受限：搜索无效 ',
  [WordApproveStatusEnum.Activate]: '待激活',
  [WordApproveStatusEnum.Approval]: '审核中',
  [WordApproveStatusEnum.Low]: '搜索量过低',
  [WordApproveStatusEnum.Invalid]: '部分无效',
  [WordApproveStatusEnum.PCSearchInvalid]: '展现受限：计算机搜索无效 ',
  [WordApproveStatusEnum.MobileSearchInvalid]: '展现受限：移动搜索无效',
  [WordApproveStatusEnum.Limited]: '展现受限'
}
